package com.yezong.AidMe.entity;

import java.util.Date;

public class Message {
    private Integer id;//消息编号
    private Integer sid;//发送者id
    private Integer rid;//接受者id
    private Date sendtime;//发消息时间
    private String content;//消息内容
    private Boolean isread = false;//是否已读，默认未读

    public Message() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Date getSendtime() {
        return sendtime;
    }

    public void setSendtime(Date sendtime) {
        this.sendtime = sendtime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getIsread() {
        return isread;
    }

    public void setIsread(Boolean isread) {
        this.isread = isread;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", sid=" + sid +
                ", rid=" + rid +
                ", sendtime=" + sendtime +
                ", content='" + content + '\'' +
                ", isread=" + isread +
                '}';
    }
}


